using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPDV
{
    public partial class SPFieldsForm : Form
    {
        public SPFieldsData FieldsData
        {
            set
            {
                SPFieldsData d = (SPFieldsData)value;
                dgvFields.DataSource = d.Fields;
            }
        }
        public SPFieldsForm()
        {
            InitializeComponent();
        }

        private void SPFieldsForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape) Close();
        }
    }
}